<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>配药中...</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="医疗问诊,智能问诊,问诊">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="./css/wx.css" />
<link rel="stylesheet" href="./css/weui.css" />
<link rel="stylesheet" href="./css/example.css" />
<link rel="stylesheet" href="./js/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="./js/bootstrap-multiselect/bootstrap-multiselect.css" type="text/css"/>
<link rel="stylesheet" href="./js/font-awesome/css/font-awesome.min.css">

<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="./js/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
<script src="./js/bootstrap-table/bootstrap-table-all.min.js"></script>
<script src="./js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="./js/bootstrap-jquery-plugin/jquery.bootstrap.js"></script>
<script src="./js/bootstrap-multiselect/bootstrap-multiselect.js"></script>
<script src="./js/bootstrap-3.3.5-dist/js/bootstrap-datetimepicker.js"></script>
<script src="./js/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/wx.js"></script>
<script type="text/javascript" src="./js/zepto.min.js"></script>
<script type="text/javascript" src="./js/example.js"></script>

<style type="text/css">
#section{
	margin-bottom: 100px;
}
.doctor{
	clear: both; 
}
.doctor-span{
	list-style:none; /* 将默认的列表符号去掉 */
	padding:8px; /* 将默认的内边距去掉 */
	margin-top:6px; /* 将默认的外边距去掉 */
	border-radius:7px;
	height: auto;
	background-color: rgba(73, 86, 187, 0.32);
}

.arrow-left{
	width: 0;
    height: 0;
    line-height: 0;
    font-size: 0;
    border-color: transparent rgba(73, 86, 187, 0.32) transparent transparent;
    border-width: 6px;
    border-style: dashed solid dashed dashed;
    top: 8px;
    left: -12px;
    z-index: 999;
}

.arrow-right{
	width: 0;
    height: 0;
    line-height: 0;
    font-size: 0;
    border-color: transparent transparent transparent rgba(20, 247, 5, 0.35);
    border-width: 6px;
    border-style: dashed solid dashed dashed;
    top: 8px;
    left: -12px;
    z-index: 999;
    float:right;
    margin-top: 19px;
}

option{
	text-align:center;
}

.select-bor{
	text-align: center;
	width:80%;
	border:1px solid rgba(60, 118, 61, 0.26);
	border-radius: 5px;
	margin : 3px 0;
}

.doctor	ul li{
	list-style:none; /* 将默认的列表符号去掉 */
	padding:8px; /* 将默认的内边距去掉 */
	margin-top:6px; /* 将默认的外边距去掉 */
	border-radius:8px;
	height: auto;
	display : inline;
	background-color: #efefef;
	text-align: center;
	display : -webkit-inline-box;
}
.asker{
	margin-left: 62px;
	width: 55%;
	position : relative;
}
.asker ul li {
	list-style:none; /* 将默认的列表符号去掉 */
	padding:8px; /* 将默认的内边距去掉 */
	margin-top:6px; /* 将默认的外边距去掉 */
	float:left; /* 往左浮动 */
	border-radius:8px;
	height: auto;
	background-color: #efefef;
}

.asker ul li span{
	vertical-align:-webkit-baseline-middle;
}
.answer-1-div {
	position: relative;
}
.answer-1{
	list-style:none; /* 将默认的列表符号去掉 */
	padding:8px; /* 将默认的内边距去掉 */
	margin-top:4px 8px 0 0; /* 将默认的外边距去掉 */
	float:right; /* 往左浮动 */
	border-radius:7px;
	height: auto;
	background-color: rgba(20, 247, 5, 0.35);
	margin: 0 10px 0 65px;
}
.asker{
	width: 100%
}
.img-radius{
	width:40px;
	height:40px;
	border-radius: 50%;
	margin:8px;
}
.weui_extra_area ul li{
	list-style:none; /* 将默认的列表符号去掉 */
	padding:8px; /* 将默认的内边距去掉 */
	float:left; /* 往左浮动 */
	height: auto;
}
.weui_extra_area ul.showsyms li {
	list-style:none; /* 将默认的列表符号去掉 */
	float:left; /* 往左浮动 */
	height: auto;
	background-color: rgba(0, 0, 0, 0);
}
.isSelect {
	background-color:#efefef;
	background-image: url(./images/click.png) !important;
	background-repeat: no-repeat;
    background-position: right bottom !important;
	color: #23598A;
	border-radius:5px;
}
#table tr{
	border-bottom: 1px solid #fff;
}
footer{
	position:fixed ;
	bottom: 0;
	width: 100%
}
footer ul{
	margin-bottom :0
}
footer ul li {
	height: 40px;
	background-color: #efefef;
	color: #fff
}
footer ul li p{
	position:absolute;
	margin-top: -11px;
	margin-left: 42%
}
#selector-1{
	background-color: #337ab7;
}

.img_border{
	border: 1px solid red;
}
</style>
<script type="text/javascript">
var storage = window.localStorage;
var illName = storage.getItem("illName");
var medicines = storage.getItem("askMedicines");
//存储所有药品
var medicineArr = [];
//按组存放药品
var medicineGroup = [];
var copyMedicineGroup = [];
//药品描述
var medicineDetails = [];
var tabooMedicine = [];
storage.setItem("tabooMedicine",tabooMedicine.join(","));
$(document).ready(function() {
	//初始化
	var section = document.getElementById("section");
	var div = document.createElement("div");
	div.className = "doctor";
	var lis = '';
	if(illName){
		var names = illName.split(",")[0];
		lis += '<li style="margin:3px;">'+names+'</li>';
		div.innerHTML = '<div style="width:100%;"><img alt="" src="./images/logo.jpg" class="img-radius" >'
						+'<span class="arrow-left">&nbsp;</span><span class="doctor-span">'
						+'您最可能患的疾病是'
						+'</span></div>'
						+'<div style="margin-left:65px;"><ul>'
							+lis
						+'</ul></div>';
		section.appendChild(div);
	}else{
		console.log("没有疾病");
		alert("没有疾病");
		window.location.href="./jsp/conditionsList.jsp";
	}

	if(medicines && medicines!=''){
		var arr = medicines.split(/[、]/);
		for(var i=0;i<arr.length;i++){
			var s = arr[i].replace(/\)/g,'').replace(/\(/g,'');
			var a = s.split(/[,，]/);
			medicineGroup.push(a);
			copyMedicineGroup.push(a);
			for(var j=0;j<a.length;j++){
				medicineArr.push(a[j]);
			}
		}
		allMedicineFlags = trandMedicineFlag(medicineArr);
		getMedicine(medicineArr.join(","));
		var section = document.getElementById("section");
		var div = document.createElement("div");
		div.id = "doctor"+doctor;
		div.className = "doctor";
		var lis = '';
		lis += '<li style="margin:3px;" id="是" onclick="selectSymsYesOrNot(\'是\')">是</li>';
		lis += '<li style="margin:3px;" id="否" onclick="selectSymsYesOrNot(\'否\')">否</li>';
		div.innerHTML = '<div style="width:100%;"><img alt="" src="./images/logo.jpg" class="img-radius" >'
						+'<span class="arrow-left">&nbsp;</span><span class="doctor-span">'
						+'请问是否进入配药流程？'
						+'</span></div>'
						+'<div style="margin-left:65px;"><ul>'
							+lis
						+'</ul></div>';
		section.appendChild(div);
	}else{
		console.log("没有药品");
		alert("没有药品");
		window.location.href="./jsp/talkResult.jsp";
	}
});

function PharmaceuticalsProcess(){
	var section = document.getElementById("section");
	var div = document.createElement("div");
	div.id = "doctor"+doctor;
	div.className = "doctor";
	var lis = '';
	lis += '<li style="margin:3px;" id="是" onclick="selectSyms(\'是\')">是</li>';
	lis += '<li style="margin:3px;" id="否" onclick="selectSyms(\'否\')">否</li>';
	div.innerHTML = '<div style="width:100%;"><img alt="" src="./images/logo.jpg" class="img-radius" >'
					+'<span class="arrow-left">&nbsp;</span><span class="doctor-span">'
					+'请问是否进入配药流程？'
					+'</span></div>'
					+'<div style="margin-left:65px;"><ul>'
						+lis
					+'</ul></div>';
	section.appendChild(div);
}

var doctor = 1;
var mod = 0;//当前模式
function showSymptomsByDoc(data){
	var section = document.getElementById("section");
	var div = document.createElement("div");
	div.id = "doctor"+doctor;
	div.className = "doctor";
	var lis = '';
	var modText = "请问您是否具有以下情况？"
	if(mod==1){
		modText = "请问您是否对以下药物过敏？";
	}else if(mod==2){
		modText = "请问您是否具有以下诱因？";
	}else if(mod==3){
		modText = "请问您是否具有以下药物服用史？";
	}else if(mod==5){
		modText = "您最可能患有以下几种疾病：";
	}
	for(var i=0;i<data.length;i++){
		lis += '<li style="margin:3px;background-color:#1ac8da !important" id="'+data[i]+'" onclick="showDetail(\''+data[i]+'\')">'+data[i]+'</li>';
		lis += '<li style="margin:3px;" id="有'+data[i]+doctor+'" onclick="selectSyms(\'有'+data[i]+doctor+'\')">有</li>';
		lis += '<li style="margin:3px;" id="无'+data[i]+doctor+'" onclick="selectSyms(\'无'+data[i]+doctor+'\')">无</li>';
		lis += '<li style="margin:3px;" id="不清楚'+data[i]+doctor+'" onclick="selectSyms(\'不清楚'+data[i]+doctor+'\')">不清楚</li>';
		lis += '<p style="border: 1px #efefef dashed;"></p>';
	}
/* 	if(mod!=5){
		lis += '<li style="margin:3px;" id="以上都无'+doctor+'" onclick="selectSyms(\'以上都无'+doctor+'\')">以上都无</li>';
	} */
	div.innerHTML = '<div style="width:100%;"><img alt="" src="./images/logo.jpg" class="img-radius" >'
					+'<span class="arrow-left">&nbsp;</span><span class="doctor-span">'
					+modText
					+'</span></div>'
					+'<div style="margin-left:65px;"><ul>'
						+lis
					+'</ul></div>';
	section.appendChild(div);
	doctor++;
}

function showSymptomsByDoc1(data){
	var section = document.getElementById("section");
	var div = document.createElement("div");
	div.id = "doctor"+doctor;
	div.className = "doctor";
	var lis = '';
	var modText = "以下药物需要皮试后再服用："
	for(var i=0;i<data.length;i++){
		if(data[i].skinTest==1){
			lis += '<li style="margin:3px;background-color:rgba(247, 222, 1, 0.76) !important;" id="'+data[i].medicine+'" onclick="showDetail(\''+data[i].medicine+'\')">'+data[i].medicine+'</li>';
		}
	}
/* 	if(mod!=5){
		lis += '<li style="margin:3px;" id="以上都无'+doctor+'" onclick="selectSyms(\'以上都无'+doctor+'\')">以上都无</li>';
	} */
	div.innerHTML = '<div style="width:100%;"><img alt="" src="./images/logo.jpg" class="img-radius" >'
					+'<span class="arrow-left">&nbsp;</span><span class="doctor-span">'
					+modText
					+'</span></div>'
					+'<div style="margin-left:65px;"><ul>'
						+lis
					+'</ul></div>';
	section.appendChild(div);
	doctor++;
}

function showSymptomsByAnswer(data){
	var section = document.getElementById("section");
	var div = document.createElement("div");
	div.className = "answer-1-div";
	div.innerHTML = '<li style="list-style-type: none;">'
					+'<span class="answer-1">'
							+data
						+'</span></li>';
	section.appendChild(div);
}

function selectSymsYesOrNot(data){
	if(data=='是'){
		$("#是").addClass("isSelect");
		$("#否").removeClass("isSelect");
	}else{
		$("#否").addClass("isSelect");
		$("#是").removeClass("isSelect");
	}
}

//过敏药
var currentSelectMedicineArr = [];
var realMedicineArr = [];
//flag=0 过敏
var allMedicineFlags;
function selectSyms(data){
	var str = "";
	if(!data.indexOf("有")){
		str = data.replace("有","");
		$("#"+data).addClass("isSelect");
		$("#无"+str).removeClass("isSelect");
		$("#不清楚"+str).removeClass("isSelect");
		var selectName = str.replace((doctor-1)+"","");
		for(var i=0;i<allMedicineFlags.length;i++){
			if(allMedicineFlags[i].name==selectName){
				allMedicineFlags[i].flag = 0;
			}
		}
	}else if(!data.indexOf("无")){
		str = data.replace("无","");
		$("#"+data).addClass("isSelect");
		$("#有"+str).removeClass("isSelect");
		$("#不清楚"+str).removeClass("isSelect");
		var selectName = str.replace((doctor-1)+"","");
		for(var i=0;i<allMedicineFlags.length;i++){
			if(allMedicineFlags[i].name==selectName){
				allMedicineFlags[i].flag = 1;
			}
		}
	}else if(!data.indexOf("不清楚")){
		str = data.replace("不清楚","");
		$("#"+data).addClass("isSelect");
		$("#有"+str).removeClass("isSelect");
		$("#无"+str).removeClass("isSelect");	
		var selectName = str.replace((doctor-1)+"","");
		for(var i=0;i<allMedicineFlags.length;i++){
			if(allMedicineFlags[i].name==selectName){
				//本来不清楚是不出药的
				//allMedicineFlags[i].flag = 2;
				allMedicineFlags[i].flag = 1;
			}
		}
	}else{
		
	}
}

//删除所有的onclick
function deleteDoctorOnclick(){
	$(".doctor").find('li').each(function(){
		$(this).removeAttr("onclick");
	});
}

function trandMedicineFlag(arr){
	var mediacine_Arr = [];
	for(var i=0;i<arr.length;i++){
		var obj = {
			name : arr[i],
			flag : 2
		}
		mediacine_Arr.push(obj);
	}
	return mediacine_Arr;
}

var groupOneMedicine = [];
var askedMedicine = [];
var sendOverFlag = false;
//点击确认
function send(){
	if(mod==0){
		if($("#是").hasClass("isSelect")){
			showSymptomsByAnswer("是");
			mod++;
			deleteDoctorOnclick();
			//展示所有药品
			for(var x=0;x<copyMedicineGroup.length;x++){
				var marr = copyMedicineGroup[x];
				for(var xx=0;xx<marr.length;xx++){
					askedMedicine.push(marr[xx]);
				}
				showSymptomsByDoc(marr);
				currentSelectMedicineArr = marr;
				copyMedicineGroup.splice(x, 1);
				break;
			}
		}else if($("#否").hasClass("isSelect")){
			showSymptomsByAnswer("否");
			deleteDoctorOnclick();
			storage.setItem("medicines","");
			if(isNotAllTaboo){
				storage.setItem("medicines","");
				storage.setItem("suggest", "根据我们系统的诊断结果，系统配药中，你所选的为全是禁忌药，需要立即到医疗机构就诊以免耽误病情。");
			}
			window.location.href="./jsp/talkResult.jsp";
		}else{
			alert("请选择“是”或“否”");
		}
	}else if(mod==1){
		var str = '';
		for(var i=0;i<currentSelectMedicineArr.length;i++){
			var flag;
			for(var j=0;j<allMedicineFlags.length;j++){
				if(currentSelectMedicineArr[i]==allMedicineFlags[j].name){
					if(allMedicineFlags[j].flag==0){
						flag = "有";
					}else if(allMedicineFlags[j].flag==1){
						flag = "无";
					}else{
						flag = "不清楚";
					}
				}
			}
			str += (currentSelectMedicineArr[i] + "(" + flag + ")<br>");
		}
		str = str.substr(0,str.length-1);
		showSymptomsByAnswer(str); 
		scrollWindow();
		deleteDoctorOnclick();
		if(copyMedicineGroup.length>0){
			for(var x=0;x<copyMedicineGroup.length;x++){
				var marr = copyMedicineGroup[x];
				var remarr = [];
				for(var xx=0;xx<marr.length;xx++){
					if(isInArray(askedMedicine,marr[xx])){
						continue;
					}else{
						askedMedicine.push(marr[xx]);
						remarr.push(marr[xx]);
					}
				}
				copyMedicineGroup.splice(x, 1);
				if(remarr.length==0){
					if(copyMedicineGroup.length==0){
						sendOverFlag = true;
						break;
					}else{
						continue;
					}
				}else{
					showSymptomsByDoc(remarr);
					currentSelectMedicineArr = remarr;
					break;
				}
				if(copyMedicineGroup.length==0){
					sendOverFlag = true;
					break;
				}
			}
			if(sendOverFlag){
				var medicines = "";
				var a = setGroupMedicineFlag();
				groupOneMedicine = getGroupOneMedicine();
				groupOneMedicine = unique(groupOneMedicine);
				storage.setItem("tabooMedicine",tabooMedicine.join(","));
				var uniqueMedicine = [];
				var f = false;
				for(var y=0;y<groupOneMedicine.length;y++){
					uniqueMedicine.push(groupOneMedicine[y].medicine);
					if(groupOneMedicine[y].skinTest==1){
						f = true;
					}
				}
				/* uniqueMedicine = unique(uniqueMedicine); */
				/* storage.setItem("medicines",uniqueMedicine.join(",")); */
				storage.setItem("medicines",JSON.stringify(a));
				deleteDoctorOnclick();
				if(f){
					showSymptomsByDoc1(groupOneMedicine);
					mod++;
					$("#btn-text").html("完成");
				}else{
					alert("跳转中，请确认！");
					if(isNotAllTaboo){
						storage.setItem("medicines","");
						storage.setItem("suggest", "根据我们系统的诊断结果，系统配药中，你所选的为全是禁忌药，需要立即到医疗机构就诊以免耽误病情。");
					}
					window.location.href="./jsp/talkResult.jsp";
				}
			}
		}else{
			var medicines = "";
			var a = setGroupMedicineFlag();
			groupOneMedicine = getGroupOneMedicine();
			groupOneMedicine = unique(groupOneMedicine);
			storage.setItem("tabooMedicine",tabooMedicine.join(","));
			var uniqueMedicine = [];
			var f = false;
			for(var y=0;y<groupOneMedicine.length;y++){
				/* medicines += groupOneMedicine[y].medicine + ","; */
				uniqueMedicine.push(groupOneMedicine[y].medicine);
				if(groupOneMedicine[y].skinTest==1){
					f = true;
				}
			}
			/* uniqueMedicine = unique(uniqueMedicine); */
			storage.setItem("medicines",JSON.stringify(a));
			deleteDoctorOnclick();
			if(f){
				showSymptomsByDoc1(groupOneMedicine);
				mod++;
				$("#btn-text").html("完成");
			}else{
				alert("跳转中，请确认！");
				if(isNotAllTaboo){
					storage.setItem("medicines","");
					storage.setItem("suggest", "根据我们系统的诊断结果，系统配药中，你所选的为全是禁忌药，需要立即到医疗机构就诊以免耽误病情。");
				}
				window.location.href="./jsp/talkResult.jsp";
			}
		}
	}else if(mod==2){
		alert("跳转中，请确认！");
		if(isNotAllTaboo){
			storage.setItem("medicines","");
			storage.setItem("suggest", "根据我们系统的诊断结果，系统配药中，你所选的为全是禁忌药，需要立即到医疗机构就诊以免耽误病情。");
		}
		window.location.href="./jsp/talkResult.jsp";
	}
	
	scrollWindow();
}

//1皮试,true是需要皮试
function isSkinTest(name){
	var f = false;
	for(var i=0;i<medicineDetails.length;i++){
		if(medicineDetails[i].name==name){
			if(medicineDetails[i].skinTest==1){
				f = true;	
			}
		}
	}
	return f;
}

//true是禁忌
function isTaboo(name){
	var f = false;
	for(var i=0;i<allMedicineFlags.length;i++){
		if(allMedicineFlags[i].name==name && allMedicineFlags[i].flag==0){
			f = true;
		}
	}
	return f;
}

//每个组取一个
var isNotAllTaboo = true;
//flag0过敏 skinTest1皮试
function getGroupOneMedicine(){
	var groupOneMedicine = [];
	for(var i=0;i<medicineGroup.length;i++){
		var A_medicine = '';
		var A_flag = 0;
		var A_skinTest = 1;
		for(var j=0;j<medicineGroup[i].length;j++){
			var nm = medicineGroup[i][j];
			A_medicine = nm;
			if(!isTaboo(nm)){
				A_flag = 1;
				isNotAllTaboo = false;
				if(!isSkinTest(nm)){
					A_skinTest = 0;
					//break;
				}else{
					A_skinTest = 1;
				}
				
			}else{
				A_flag = 0;
				if(!isSkinTest(nm)){
					A_skinTest = 0;
					//break;
				}else{
					A_skinTest = 1;
				}
				//tabooMedicine.push(nm);
			}
		}
		var obj = {
			num : i,
			medicine : A_medicine,
			flag : A_flag,
			skinTest : A_skinTest
		}
		groupOneMedicine.push(obj);
	}
	return groupOneMedicine;
}

function setGroupMedicineFlag(){
	var groupMedicineFlag = [];
	for(var i=0;i<medicineGroup.length;i++){
		var A_medicine = '';
		var mearr = [];
		var A_flag = 0;
		var A_skinTest = 1;
		var obj;
		for(var j=0;j<medicineGroup[i].length;j++){
			var nm = medicineGroup[i][j];
			A_medicine = nm;
			
			if(!isTaboo(nm)){
				A_flag = 1;
				if(!isSkinTest(nm)){
					A_skinTest = 0;
				}else{
					A_skinTest = 1;
				}
			}else{
				A_flag = 0;
				if(!isSkinTest(nm)){
					A_skinTest = 0;
				}else{
					A_skinTest = 1;
				}
				tabooMedicine.push(nm);
			}
			obj = {
				num : i,
				medicine : A_medicine,
				flag : A_flag,
				skinTest : A_skinTest
			};
			mearr.push(obj);
		}
		groupMedicineFlag.push(mearr); 
	}
	return groupMedicineFlag;
}

//设置滚动条到最底部
function scrollWindow(){ 
    scroll(0, 100000); 
}

//判断元素是否在数组里面
function isInArray(arr,value){
    for(var i = 0; i < arr.length; i++){
        if(value === arr[i]){
            return true;
        }
    }
    return false;
}

//数组去重
function unique(arr) {
    var result = [], isRepeated;
    for (var i = 0;i<arr.length;i++) {
        isRepeated = false;
        for (var j = 0;j<result.length;j++) {
            if (arr[i] == result[j]) {   
                isRepeated = true;
                break;
            }
        }
        if (!isRepeated) {
            result.push(arr[i]);
        }
    }
    return result;
}

function getMedicine(names){
	$.ajax({
        url: "./medicine/getMedicineDetail.spring",
        data: {
        	names : names
        },
        type: "POST",
        dataType: 'json',
        cache: false,
        success: function (ret) {
        	medicineDetails = ret.content;
        }
    });
}

function showDetail(name){
	for(var i=0;i<medicineDetails.length;i++){
		if(medicineDetails[i].name==name){
			$("#medicineBox").show();
			if(medicineDetails[i].medicineUsage!=null){
				$("#details").html(medicineDetails[i].medicineUsage);
			}else{
				$("#details").html("本词条内容尚未完善");
			}
		}
	}
}

function OK(){
	$("#medicineBox").hide();
	$("#details").html("");
}
</script>
</head>
<body >
	<section>
		<div id="section">

	</section>
	<div class="weui_dialog_confirm" id="symptomBox" style="display: none;">
	    <div class="weui_mask"></div>
	    <div class="weui_dialog">
	        <div class="weui_dialog_hd"><strong class="weui_dialog_title">请选择‘<span id="symptomName"></span>’的描述</strong></div>
	        <div class="weui_dialog_bd" id="table"></div>
	        <div class="weui_dialog_ft">
	            <a href="javascript:;" class="weui_btn_dialog default" onclick="cancle()">取消</a>
	            <a href="javascript:;" class="weui_btn_dialog primary" onclick="comimt()">确定</a>
	        </div>
	    </div>
	</div>
	<div class="weui_dialog_confirm" id="medicineBox" style="display: none;">
	    <div class="weui_mask"></div>
	    <div class="weui_dialog" >
	    	<div style="margin:15px 0;border-bottom: 1px solid #efefef;padding-bottom:8px;font-size: 20px;">药品用法</div>
	    	<p id="details" style="overflow:auto;text-indent: 2em;text-align: -webkit-auto !important;"></p>
	        <div class="weui_dialog_ft">
	            <a href="javascript:;" class="weui_btn_dialog primary" onclick="OK()">确定</a>
	        </div>
	    </div>
	</div>
	<div class="weui_dialog_confirm" id="disclaimerBox" style="display: none;">
	    <div class="weui_mask"></div>
	    <div class="weui_dialog" >
	    	<div style="margin:15px 0;border-bottom: 1px solid #efefef;padding-bottom:8px;font-size: 20px;">郑重承诺</div>
	    	<p style="color: #000;font-size: 13px;">我已经阅读并遵守<a>《<!-- 蒙估大夫 -->免责声明》</a></p>
	        <div class="weui_dialog_ft">
	            <a href="javascript:;" class="weui_btn_dialog primary" onclick="Disclaimer_OK()">确定</a>
	            <a href="javascript:;" class="weui_btn_dialog primary" style="color: #b20b0b !important" onclick="Disclaimer_ON()">取消</a>
	        </div>
	    </div>
	</div>
	<div style="height: 1px">
	</div>
	<footer>
		<ul>
			<li onclick="send();" id="selector-1"><p id="btn-text">发送</p></li>
		</ul>
	</footer>
</body>
</html>
